package view.templates;

import java.awt.Color;

import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JButton;

public class MyJButton extends JButton {
	private static final long serialVersionUID = 1L;

	private Color color = ColorTemplate.ButtonColor.getColor();

	public MyJButton() {
		super();
		setBackground(ColorTemplate.ButtonColor.getColor());
	}

	public MyJButton(Action a) {
		super(a);
		setBackground(ColorTemplate.ButtonColor.getColor());
	}

	public MyJButton(Icon icon) {
		super(icon);
		setBackground(color);
	}

	public MyJButton(String text, Icon icon) {
		super(text, icon);
		setBackground(color);
	}

	public MyJButton(String name) {
		super(name);
		setBackground(color);
	}
}
